<html>
<head>
<link rel=stylesheet type="text/css" href="/media/malfind.css" title="malfind">
<script language="JavaScript" src="/media/malfind.js"></script>
<link rel="icon" href="/media/favicon.ico" type="image/x-icon">
<title>MalFind Stats</title>
</head>
<body>

<div align="left" style="position:absolute;"><a href="/" style="color:#44f"><img src="/favicon.ico" border="0" align="top">Home</a></div>
<div align="right" style="margin-bottom:2em;">
{%if userdata.user%}<b>{{userdata.user|escape}}</b>	 |{%endif%}
<a href="http://code.google.com/p/malfind2/issues/list" style="color:#44f">Report bug</a> |
{%if userdata.admin%}<a href="/stats" style="color:#44f">Admin</a> |{%endif%}
{%if userdata.user%}<a href="{{userdata.logout|escape}}" style="color:#44f">Sign out</a>{%else%}
<a href="{{userdata.login|escape}}" style="color:#44f">Sign In</a>{%endif%}
</div>

<div class="top">
<form action="/check">
<table><tr><td><a class="mf" href="/">MalFind</a></td>
<td><input name="url" value="{{url|escape}}" size="40"></td>
<td><input type=submit value="Check" name="check"></td>
</tr></table>
</form>
</div>

<h3>Safe Browsing Digests</h3>
<ul>
{% for digest in digests %}
  <li><pre>{{digest.hash|escape}}</pre></li>
{% endfor %}
</ul>

<form action="/stats" method="post">
<table><tr><td>Add a new digest</a></td>
<td><input name="digest" value="" size="32"></td>
<td><input type="submit" value="Add" name="add"></td>
</tr></table>
</form>


<h3>Recently checked urls</h3>
<ul>
{% for query in queries %}
  <li>{{query.url|escape}}, {{query.when}}</li>
{% endfor %}
</ul>

</body>
</html>
